package com.zg.shop.adminuser;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public class AdminUserService {

	private AdminUserDao adminUserDao = new AdminUserDao();

	public void setAdminUserDao(AdminUserDao adminUserDao) {
		this.adminUserDao = adminUserDao;
	}

	public AdminUser login(AdminUser adminUser) {
		AdminUser existAdminUser = adminUserDao.login(adminUser); 
		if(existAdminUser != null){
			System.out.println("1-------------");
			return existAdminUser;
		}
		return null;
	}

}
